
<extend name="Public/base" />
<block name="style">
    <style type="text/css">
    .btn{

    background: #09c;
}
.btn:hover{
    background: #09c;
}
    .code{
        width: 135px;
        height:40px;
        border:none;
        background: #4BBD00;
        color: #fff;

    }
    .real_status{
        width: 135px;
        height:40px;
        border:none;
        background: #4BBD00;
        color: #fff;

    }

    p{
        height:50px;
        line-height: 50px;
        font-size: 18px;
        margin-top: 20px;
    }


    .side-sub-menu > li > .item {
                color: #000;
                font-family: '宋体';
                font-size:15px;padding:0px;
                line-height: 25px;
            }
    .sidebar {
        background: #3697A0;
        position: absolute;
    }


     /* 头部Logo,主导航*/
            body{
                color:#000;
                font-family: '宋体';
                font-weight: 900;
            }
            .header {
                background-color:   #3697A0;
                height: 45px;
            }
            /* 主导航 */
            .main-nav a {
                height: 45px;
                color: #150303;
            }
            .main-nav a:hover {
                height: 45px;
                background-color:#70bcf3;
                color: #150303;
            }
            .main-nav .current{
                height: 45px;
                background-color: #70bcf3;
            }
            .main-nav .current a {
                height: 45px;
                background-color: #70bcf3;
                color: #150303;
            }
            .logo{
                height: 45px;
                background: #ccc;
            }
            .sidebar{
                margin-top:-5px;
                background:     #3697A0;
                color: #000;
            }
            .subnav h3{
                color: #000;
            }

            .main-nav {
                /*width:100%;*/
                float: none;
                height: auto;
            }

            .mainnav {
                /*height: auto;*/
                height: 100%;
            }

            .main-nav li{
                float: none;
                width:180px;
            }




    </style>
</block>
<block name="body">
    <div class="main-title">
        <h2>通道管理</h2>
    </div>




    <form action="{:U()}" method="post" class="form-horizontal">






        <div class="form-item">
            <label class="item-label">回款花呗：</label>
            <div class="controls">
                <select name="hk_hb">
                    <if condition="$info[hk_hb] eq 1">
                    <option selected value="1">开启</option>
                    <option value="0">关闭</option>
                    <else/>
                     <option value="1">开启</option>
                    <option selected value="0">关闭</option>
                </if>
                </select>
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">风控花呗：</label>
            <div class="controls">
                <select name="fengkong_hb">
                    <if condition="$info[fengkong_hb] eq 1">
                        <option selected value="1">开启</option>
                        <option value="0">关闭</option>
                        <else/>
                        <option value="1">开启</option>
                        <option selected value="0">关闭</option>
                    </if>
                </select>
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">信用pos100-19999：</label>
            <div class="controls">
                <select name="hk_xy">
                    <if condition="$info[hk_xy] eq 1">
                        <option selected value="1">开启</option>
                        <option value="0">关闭</option>
                        <else/>
                        <option value="1">开启</option>
                        <option selected value="0">关闭</option>
                    </if>
                </select>
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">信用pos10-999：</label>
            <div class="controls">
                <select name="samll_xyk">
                    <if condition="$info[samll_xyk] eq 1">
                        <option selected value="1">开启</option>
                        <option value="0">关闭</option>
                        <else/>
                        <option value="1">开启</option>
                        <option selected value="0">关闭</option>
                    </if>
                </select>
            </div>
        </div>


        <!--<div class="form-item">-->
            <!--<label class="item-label">回款花呗分期：</label>-->
            <!--<div class="controls">-->
                <!--<select name="hk_fq">-->
                    <!--<if condition="$info[hk_fq] eq 1">-->
                    <!--<option selected value="1">开启</option>-->
                    <!--<option value="0">关闭</option>-->
                    <!--<else/>-->
                     <!--<option value="1">开启</option>-->
                    <!--<option selected value="0">关闭</option>-->
                <!--</if>-->
                <!--</select>-->
            <!--</div>-->
        <!--</div>-->

        <!--

        <div class="form-item">
            <label class="item-label">不回款信用卡：</label>
            <div class="controls">
                <select name="nhk_xy">
                    <if condition="$info[nhk_xy] eq 1">
                    <option selected value="1">开启</option>
                    <option value="0">关闭</option>
                    <else/>
                     <option value="1">开启</option>
                    <option selected value="0">关闭</option>
                </if>
                </select>
            </div>
        </div> -->

        <!--<div class="form-item">-->
            <!--<label class="item-label">不回款花呗：</label>-->
            <!--<div class="controls">-->
                <!--<select name="nhk_hb">-->
                    <!--<if condition="$info[nhk_hb] eq 1">-->
                    <!--<option selected value="1">开启</option>-->
                    <!--<option value="0">关闭</option>-->
                    <!--<else/>-->
                     <!--<option value="1">开启</option>-->
                    <!--<option selected value="0">关闭</option>-->
                <!--</if>-->
                <!--</select>-->
            <!--</div>-->
        <!--</div>-->

   <!--      <div class="form-item">
            <label class="item-label">不回款花呗分期：</label>
            <div class="controls">
                <select name="nhk_fq">
                    <if condition="$info[nhk_fq] eq 1">
                    <option selected value="1">开启</option>
                    <option value="0">关闭</option>
                    <else/>
                     <option value="1">开启</option>
                    <option selected value="0">关闭</option>
                </if>
                </select>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">不回款条码：</label>
            <div class="controls">
                <select name="nhk_tm">
                    <if condition="$info[nhk_tm] eq 1">
                    <option selected value="1">开启</option>
                    <option value="0">关闭</option>
                    <else/>
                     <option value="1">开启</option>
                    <option selected value="0">关闭</option>
                </if>
                </select>
            </div>
        </div>
 -->
<div class="form-item">
    <label class="item-label">提现：</label>
    <div class="controls">
        <select name="tixian">
            <if condition="$info[tixian] eq 1">
            <option selected value="1">开启</option>
            <option value="0">关闭</option>
            <else/>
             <option value="1">开启</option>
            <option selected value="0">关闭</option>
        </if>
        </select>
    </div>
</div>



        <div class="form-item">
            <button class="btn submit-btn" id="submit" type="button" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>

        </div>
    </form>
</block>
<block name="script">


    <script type="text/javascript">

        Think.setValue("extend", {$info.extend|default=0});
            //导航高亮
            highlight_subnav('{:U('close')}');

        $('#code').click(function(){
            var code=$('.app_auth_code').val();
            location.href="{:U('Alipay/get_token?code=')}"+code;
        })

        $('#submit').click(function(){
            var data=$('form').serializeArray();
            $.ajax({
                type:'post',
                url:'',
                data:data,
                success:function(m){
                    if(m==1){
                        alert('修改成功！');
                        location.href="{:U('close')}";
                    }else if(m==0){
                        alert('修改失败！');
                    }else{
                        alert(m)
                    }
                }

            })
        })



    </script>


</block>

